﻿using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Http;
using Pay.Service.Cache;
using Pay.Data;
using Pay.Service;
using System;

namespace Pay.Api {
	public class Global : HttpApplication {
		protected void Application_Start() {
			DbContextInitailizer.Initialize();
			DependencyInjectionConfig.Register();
			AutoMapperConfig.Register();

			AreaRegistration.RegisterAllAreas();
			GlobalConfiguration.Configure(WebApiConfig.Register);
			RouteConfig.RegisterRoutes(RouteTable.Routes);
		}
	}
}
